import "../../less/doctor/doctor.less";

let doctorKey = sessionStorage.getItem('name') || 1
let doctorClass = '.fack_doctor_ctn' + doctorKey

// $(doctorClass).css({"display":'block'})
$(doctorClass).delay(500).fadeIn();
$('.fack_doctor_box .doctor_btn').delay(2000).fadeIn();



$('.doctor_fake_btn').on('click', function () {
    $('.fack_doctor_box').animate({ width: "0px", height: "0px"}, {
        step: function (now) {
            $(this).css('-webkit-transform', 'rotate(' + now + 'deg)');
            $(this).css('-moz-transform', 'rotate(' + now + 'deg)');
        }, duration: 500, complete: function () {
            $('.god_doctor_ctn').fadeIn()
            $('.god_doctor_ctn .doctor_btn').delay(2000).fadeIn()
        }
    })

})


$('.god_doctor_btn').on('click', function () {
    linkTo('/fillingTeeth')
})